package cn.bandeqing.order.entity;

import com.mybatisflex.annotation.EnumValue;
import io.github.linpeilie.annotations.AutoEnumMapper;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
@AutoEnumMapper("value")
public enum OrderStatus {

    wait(0, "待确认"),
    wait_deposit(1, "待付定金"),
    confirm(2, "已确认"),
    complete(3, "已完成"),
    cancel(4, "取消"),
    ;

    @EnumValue
    private final Integer value;

    private final String label;


}